/**
 * 
 */
package messaage;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

/**
 * @author Olga
 * 
 */
public class AddedFriendMsg extends Message {

	protected String friendName;

	/**
	 * 
	 */
	public AddedFriendMsg(String friendName) {
		this.friendName = friendName;
		this.type = "AddedFriendMsg";
	}


	/*
	 * (non-Javadoc)
	 * 
	 * @see messaage.Message#toString()
	 */
	@Override
	public String toString() {
		XStream xstream = new XStream(new DomDriver());
		String xml = xstream.toXML(this)+"\0";
		
		return xml;
	}

	/**
	 * @return the friendName
	 */
	public String getFriendName() {
		return friendName;
	}

}
